using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class CameraMove : MonoBehaviour
{
    //摄像机看向的对象
    public Transform relationObj;
    public float H;
    private Vector3 temp;

    private void LateUpdate()
    {
        temp.x = relationObj.position.x;
        temp.y = H;
        temp.z = relationObj.position.z;

        this.transform.position = temp;
    }
}